package cn.edu.buaa.treehole.config;

import cn.edu.buaa.treehole.config.Setting;
import org.springframework.stereotype.Component;

@Component(value = "setting")
public class GlobalSetting implements Setting {
    private final boolean BLOCK_INFO_CACHE = true;
    private final boolean BLOCK_LIST_CACHE = true;

    @Override
    public boolean blockInfoCache() {
        return BLOCK_INFO_CACHE;
    }

    @Override
    public boolean blockListCache() {
        return BLOCK_LIST_CACHE;
    }
}
